/**
 * Created by bgy on 2016/12/5.
 */
import React from 'react';

class  HeaderTitle extends React.Component{

  handleClick(e){
    e.preventDefault();
    window.history.back();
  }
  render(){
    return(
      <header className='header-title'>
        <a onClick={this.handleClick} className='leftBtn' >&nbsp;</a> {this.props.title}
      </header>
    );
  }
}
HeaderTitle.defaultProps={
  title:''
};
export default HeaderTitle;
